<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
    <script src="/js/vue.js"></script>
    <style>
        #hcp{
            height: 300px;
            background-color: aqua;
        }
    </style>
</head>
<body>
<div id="hcp">
    <p @mouseover="mm" style="background-color: red;height: 200px">
        x:{{x}}  &emsp; y:{{y}}
        <span @mouseover.stop style="background-color: blue">鼠标移动到这里停止鼠标移动事件</span>
    </p>
</div>

<script>
    new Vue({
        el: "#hcp",
        data: {
            x:0,
            y:0
        },
        methods: {
            mm: function (event) {
                this.x=event.clientX;
                this.y=event.clientY;
            }
        }
    });
</script>
</body>
</html>